package com.xtck.ha.fault;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class NacosConfigTester {

    @Value("${web.predict-result:未读取到}")
    private String testValue;

    @PostConstruct
    public void printConfig() {
        System.out.println("从 Nacos 读取到配置：web.predict-result = " + testValue);
    }
}

